home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- SUBJECT=""
- WBFILE=""
- TO=""
- while [ "$1" != "" ]
- do
- case "$1" in
- "-to")
- TO=$2;
- shift;
- ;;
- "-subject")
- if [ "$2" != "-to" -a "$2" != "-wbfile" ]
- then
- SUBJECT=$2;
- shift;
- fi
- ;;
- "-wbfile")
- WBFILE=$2;
- shift;
- ;;
- *)
- TO="${TO} $1";
- ;;
- esac;
- if [ "$1" != "" ]
- then
- shift;
- fi
- done
-
- case "${TO}" in
- "-subject" | "-wbfile" | "")
- echo "No InPerson address specified.\n";
- exit 1;
- ;;
- esac;
-
- if [ "${WBFILE}" != "" ]
- then
- /usr/lib/InPerson/inpcontrol "call -f $WBFILE $TO";
- else
- /usr/lib/InPerson/inpcontrol "call $TO";
- fi